<?php get_header(); ?>
<?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>


	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		
		<div class="postContainer">
				<div class="post">
                <h3 style="margin:0; "><a href="<?php the_permalink() ?>" style="color: #263a6d; "><?php the_title() ?></a></h3>
					<div class="entry">
			
            <p class="meta" style="margin-bottom:15px;">Postado em <?php the_time('j'); ?><?php if (get_the_time('j') == 1) { echo '&ordm;'; } ?>/<?php the_time('m/Y'); ?> por <?php the_author(); ?> </p>
            
					<?php the_content(); ?>
					<p><?php edit_post_link('Editar', '', ' | '); ?><?php the_tags('<b>Tags: </b>', ', ', '<br />'); ?> </p>
					
					<style type="text/css">
					.tw_button { left:0; position:relative; top:-263px; }
					.linkwithin_hook { display:block; height:233px; width:560px; }
					</style>
					
				</div>
			</div>
		</div>
				
		<div class="comments">
			<?php comments_template(); ?>
		</div>

	<?php endwhile; else: ?>

		<h2>N&atilde; Encontrado</h2>
		<p>Desculpe, mas nenhum post foi encontrado.</p>

	<?php endif; ?>
	
<?php if($useGeneralSidebar == "No") { get_sidebar('blog'); } else { get_sidebar(); } ?>
<?php get_footer(); ?>